
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <table id="table" class="table table-striped" width="100%">
        <tr>
            <td colspan="10">商品信息</td>
        </tr>
        <tr>
            <td>商品ID</td>
            <td>商品编号</td>
            <td>商品名称</td>
            <td>游戏区服</td>
            <td>商品价格</td>
            <td>商品类型</td>
            <td>商品库存</td>
            <td>交易时间</td>
        </tr>
        <tr>
            <td><a href="">{$row.id|htmlentities}</td>
            <td><a href="">{$row.order_sn|htmlentities}</a></td>
            <td style="word-break: break-all;">{$row.title|htmlentities}</td>
            <td>{$row.game|htmlentities}{$row.type_name|htmlentities}{$row.area|htmlentities}{$row.server|htmlentities}</td>
            <td>{$row.prices|htmlentities}</td>
            <td>{$row.type_name|htmlentities}</td>
            <td>{$row.receiving.num|htmlentities}</td>
            <td>{:$row.receiving.jy_time?datetime($row.jy_time):''}</td>
        </tr>
    </table>

    <table id="table" class="table table-striped" width="100%">
        <tr>
            <td colspan="12">订单信息</td>
        </tr>
        <tr>
            <td>订单ID</td>
            <td>订单编号</td>
            <td>购买数量</td>
            <td>订单金额</td>
            <td>卖家</td>
            <td>卖家手机号</td>
            <td>卖家QQ</td>
            <td>买家</td>
            <td>买家手机号</td>
            <td>买家QQ</td>
            <td>下单时间</td>
            <td>收获区服</td>
        </tr>
        <tr>
            <td>{$row.id|htmlentities}</td>
            <td>{$row.order_sn|htmlentities}</td>
            <td>{$row.num|htmlentities}</td>
            <td>{$row.prices|htmlentities}</td>
            {if condition = "$group_access != 13"}<td>{$row.personal.account|htmlentities}</td>{else/}<td>{$row.personal.account|mb_substr=0,4,'utf-8'}****{$row.personal.account|mb_substr=7,4,'utf-8'}</td>{/if}
            {if condition = "$group_access != 13"}<td>{$row.receiving.mobile|htmlentities}</td>{else/}<td>{$row.receiving.mobile|mb_substr=0,4,'utf-8'}****{$row.receiving.mobile|mb_substr=7,4,'utf-8'}</td>{/if}
            {if condition = "$group_access != 13"}<td>{$row.receiving.qq|htmlentities}</td>{else/}<td>***{$row.receiving.qq|mb_substr=3,8,'utf-8'}</td>{/if}
            {if condition = "$group_access != 13"}<td>{$row.mobile|htmlentities}</td>{else/}<td>{$row.mobile|mb_substr=0,4,'utf-8'}****{$row.mobile|mb_substr=7,4,'utf-8'}</td>{/if}
             {if condition = "$group_access != 13"}<td>{$row.mobile|htmlentities}</td>{else/}<td>{$row.mobile|mb_substr=0,4,'utf-8'}****{$row.mobile|mb_substr=7,4,'utf-8'}</td>{/if}
            {if condition = "$group_access != 13"}<td>{$row.qq|htmlentities}</td>{else/}<td>***{$row.qq|mb_substr=3,8,'utf-8'}</td>{/if}
            <td>{:$row.ontime?datetime($row.ontime):''}</td>
            <td>{$row.role_server|htmlentities}|{$row.type_name|htmlentities}</td>

        </tr>
    </table>
   
    <!-- {if condition="($row['status'] eq 11)"}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('客服上传截图')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-images" class="form-control" size="50" name="row[kf_images]" type="text" value="{$row.kf_images|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-images"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-images"></ul>
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    {/if} -->

    <!-- {if condition="($row['status'] eq 8)"}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('审核')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[status]', ['2'=>__('审核通过'),'7'=>__('审核失败')],$row.status)} 
            </div>
        </div>
        <input type="hidden" name="row[away]" value="2">
        {else /}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('审核状态')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:Form::radios('row[status]', ['2'=>__('审核通过'),'7'=>__('审核失败')], $row.status, ['disabled'=>'disabled'])}
            </div>
        </div>
    {/if} -->
    
</form>